package proxy_aop;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import proxy_jdk.Customer;

public class CustomerProxyProject_aop {

    public static void main(String[] args) {


        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("springConfig.xml");

        CustomerCRUD_aop proxy = context.getBean(CustomerCRUD_aop.class);

        proxy.addCustomer(new Customer());
        System.out.println("====================================");

        proxy.deleteCustomer("1");
        System.out.println("====================================");

        proxy.updateCustomer(new Customer());
        System.out.println("====================================");

        proxy.queryAllCustomers();

    }

}
